package com.lx.pc.mybatis.repository.quotationprice;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.mybatis.repository.annotation.Query;
import org.springframework.data.mybatis.repository.support.MybatisRepository;

import com.lx.pc.domain.entity.quotationprice.QuotationpriceEntity;

public interface QuotationpriceRepository extends MybatisRepository<QuotationpriceEntity, BigInteger>{

	/**
	 * 查询总数
	 */
	@Query("findByQuotationpriceCount")
	public int findByQuotationpriceCount(QuotationpriceEntity quotationprice);
	
	/**
	 * 查询分页
	 * @param InformationEntity
	 * @param page
	 * @param size
	 * @return
	 */
	@Query("findByQuotationprice")
	public List<QuotationpriceEntity> findByQuotationprice(QuotationpriceEntity quotationprice,Integer page,Integer size);
	
	/**
	 * 详情查看
	 * @param id
	 * @return
	 */
	@Query("findByQuotationpriceId")
	public QuotationpriceEntity findByQuotationpriceId(BigInteger id);
}
